import requests

url = "https://chinasoftinc.com/owa"

headers = {
    'User-Agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Mobile Safari/537.36'
}

proxies = {
    "http": "http://10.10.1.10:3128",
    "https": "http://10.10.1.10:1080",
}
# proxies设置代理 传入字典  http和https自动找对应的value进行代理
r = requests.get(url=url, headers=headers, proxies=proxies)
# 代理就是找另外一台电脑进行发送请求 再把请求到的数据返回


